package com.yoona.common.configuration;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: yoonada
 * @email: m15602498163@163.com
 * @create: 2020-10-28 13:52
 * @description: MyBatisPlus配置
 */
@Configuration
public class MyBatisPlusConfiguration {

    /**
     * 分页插件
     * @return
     */

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }


}
